package xyz.gzdxc.common.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * the operation privilege annotation, log the operation according to it, judge the priv according to it
 *
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface OperPriv {
    String oper();
    boolean auth() default true;
    boolean log() default true;
}
